import { $get } from '@js/request'
import { AuthoritySchema } from '@src/components/schema/authority';
import { tenantCode } from '@src/assets/js/config';

export async function getMenuDataRequest (id: string): Promise<AuthoritySchema[]> {
  const res = await $get('/api/common/mymenu', {
    accountid: id,
    tenant_code: tenantCode,
    type: 'menu'
  })
  return res.data
}
